#ifndef __UM_PWM_H
#define __UM_PWM_H

/* Includes ------------------------------------------------------------------*/
#include "mcu.h"
#include "um_conf.h"

/* Private typedef -----------------------------------------------------------*/
typedef struct _PWMCtrlTag
{
	u8     id;
	u8     dir;
	s16    spd;
}PWMCtrlType;

/* Private define ------------------------------------------------------------*/


/* Private macro -------------------------------------------------------------*/


/* Public variables ---------------------------------------------------------*/
extern PWMCtrlType pwm1;


/* Public functions  ---------------------------------------------------------*/

extern void UM_PWM_Init(void);

extern void UM_PWM_Start();

extern void UM_PWM_Stop();

extern void UM_PWM_SetDuty(PWMCtrlType *pwm);

#endif
